package edu.sctu.practice.class02.xuejiahua.assign02;

/**
 * Created by Administrator on 2015/10/8.
 */

public class Circle {
    public double radius = 0;
    protected static int numOfObjects = 0;


    public Circle(double radius){
        this.radius=radius;
        numOfObjects++;

    }

    public double getCircleArea(){

        double circlearea=radius*radius*Math.PI;
        return circlearea;
    }

    public static void printCircle(Circle c){
        System.out.println("半径"+c.radius);
        System.out.println("面积"+c.getCircleArea());
        System.out.println("圆的数量"+numOfObjects);


    }

}